[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Finds the first item in the list that satisfies the condition
defined by predicate. If no item matches the condition, than
the default value for T (null or all-zero) is returned.
Namespace: Wintellect.PowerCollections
Assembly:
PowerCollections (in PowerCollections.dll)
Syntax
| C# |
|---|
public virtual T Find(
Predicate<T> predicate
) |
| Visual Basic (Declaration) |
|---|
Public Overridable Function Find ( _
predicate As Predicate(Of T) _
) As T |
| Visual C++ |
|---|
public:
virtual T Find (
Predicate<T>^ predicate
) |
Parameters
- predicate
- Predicate<(Of <T>)>
A delegate that defined the condition to check for.
Return Value
The first item that satisfies the condition
predicate. If no item satisfies that
condition, the default value for T is returned.
Remarks
See Also